package com.frame.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.frame.common.core.entity.SysNotice;
import com.frame.system.mapper.SysNoticeMapper;
import com.frame.system.service.ISysNoticeService;
import org.springframework.stereotype.Service;


/**
 * 公告 服务层实现
 *
 * @author ruoyi
 */
@Service
public class SysNoticeServiceImpl extends ServiceImpl<SysNoticeMapper,SysNotice> implements ISysNoticeService {

    /**
     * 查询公告列表
     *
     * @param notice 公告信息
     * @return 公告集合
     */
    @Override
    public IPage<SysNotice> selectNoticeList(IPage page, SysNotice notice) {
        return page.setRecords(baseMapper.selectNoticeList(page,notice));
    }

}
